//
//  UILabel+Extension.swift
//  武汉微博
//
//  Created by 谌桃 on 16/9/24.
//  Copyright © 2016年 ryan.chen. All rights reserved.
//

import UIKit

extension UILabel{

    ///UILabel 便利构造方法，默认居中，灰色，字体14号
    convenience init(textStr:String,alignment:NSTextAlignment = .Center,color:UIColor = UIColor.grayColor() ,fontSize:CGFloat = 14.0) {
        
        self.init()
        
        self.text = textStr
        self.textAlignment = alignment
        self.textColor = color
        self.font = UIFont.systemFontOfSize(fontSize)
        self.numberOfLines = 0
        
    }
}
